import 'package:json_annotation/json_annotation.dart';

part 'login.g.dart';

//run this command to generate code
//flutter packages pub run build_runner build


@JsonSerializable()
class Person{
  final String firstName;
  final String lastName;
  final DateTime birthDay;

  Person({this.firstName = "", this.lastName = "",required this.birthDay});

  factory Person.fromJson(Map<String,dynamic> json) => _$PersonFromJson(json);
  Map<String,dynamic> toJson() => _$PersonToJson(this);


}